import logging
def log_set():
    logging.basicConfig(filename='weidudiansanglog.txt',filemode='a+',level=logging.DEBUG,
                        format="%(filename)s-%(asctime)s-%(message)s")
